<template>
  <header class="my-head">
    <el-row class="my-row">
      <el-col :span="3" class="Head-title"> 宿舍管理系统 </el-col>
      <el-col :span="10"></el-col>
      <el-col :span="8" class=""></el-col>
      <el-col :span="3">
        <div class="youLike">
          <span class="demonstration">主题颜色</span>
          <el-color-picker @change="colorchange" v-model="color" show-alpha>
          </el-color-picker>
        </div>
      </el-col>
    </el-row>
  </header>
</template>

<script>
export default {
  data() {
    return {
      color: "rgba(31, 162, 171, 0.68)",
    };
  },
  methods: {
    colorchange() {
      this.changelikeColor(this.color);
    },
  },
  created() {
    console.log(this.likeColor);
  },
  mounted() {},
};
</script>

<style lang="scss">
.my-head {
  width: 100%;
  height: 100%;
  background-color: #40485b;

  .my-row {
    display: flex;
    height: 100%;
    font-size: 14px;
    align-items: center;
    color: white;
    .Head-title {
      color: greenyellow;
      font-size: 18px;
      text-align: center;
    }
    .youLike {
      justify-content: space-around;
      display: flex;
      color: white;
      align-items: center;
    }
  }
}
</style>